<style>
    *{
        margin: 0;
        padding: 0;
    }
    .row-bettween {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        /* justify-content: space-between; */
    }

    .top-item {
        /* flex: 1; */
        padding: 5px 10px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
        font-size: 24px;
        border-radius: 10px;
        margin-left: 20px;
        margin-bottom: 20px;
        min-width: 230px;
        line-height:  normal;
    }

    .top-item span {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .row-flex {
        display: flex;

    }

    .flex-wrap {
        display: flex;
        flex-wrap: wrap;
    }

    .matter-box {
        padding: 10px;
        border-radius: 10px;
        background-color: #fff;
        flex: 1;
        min-width: 500px;
        margin-bottom: 20px;
    }

    .tag-red {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .tag-red i {
        width: 15px;
        height: 15px;
        border-radius: 50%;
        border: 5px solid #ff0000;
        margin-right: 10px;
    }

    .matter-ipt {
        padding: 5px 10px;
        border-bottom: 1px solid #f1f1f1;
        margin-left: 20px;
        min-width: 200px;
        margin-bottom: 5px;
        justify-content: space-between;
    }

    .matter-ipt span {
        color: #ff0000;
    }

    .quick {
        margin-right: 20px;
        font-size: 14px;
        text-align: center;
        margin-left: 30px;
    }

    .quick i {
        font-size: 30px;
        color: #ff0000;
        margin-bottom: 5px;
    }

    .table-box {
/*        width:80%;*/
/*         flex: 1; */
        margin-left: 40px;
    }

    .table-box-th {
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
    }

    .table-box-th div {
        width: 200px;
        height: 40px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #ecebeb;
    }

    .table-title {
        color: #000;
        font-size: 14px;
        margin: 10px 0;
    }

    .table-box-th:nth-child(1) div {
        border-right: 1px solid #ccc;
    }

    .table-box-th:nth-child(2) div {
        border-right: 1px solid #ccc;
    }



    .table-box-tr {
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
    }

    .table-box-tr div {
        width: 200px;
        height: 60px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #fff;
    }

    .table-box-tr:nth-child(1) div {
        border-right: 1px solid #ccc;
    }

    .table-box-tr:nth-child(2) div {
        border-right: 1px solid #ccc;
    }

    .th-rank {
        width: 80px !important;
        border-right: 1px solid #ccc;
        height: 30px !important;
    }

    .th-service {
        width: 300px !important;
        border-right: 1px solid #ccc;
        height: 30px !important;
    }

    .th-sales-amount {
        width: 180px !important;
        height: 30px !important;
    }

    .increase {
        font-size: 12px;
        display: none; 

    }

    .border-left {
        border-right: 1px solid #ccc;
    }

    .increase .up {
        color: #7aea73;
        margin-left: 3px;

    }

    .increase .down {
        color: #ff0000;
        margin-left: 3px;
    }
</style>

<form class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" novalidate="" method="post" action="" id="form">
    <div class="row">
        <div class="row">
            <div class="form-group">
                
                <div class="col-xs-6">

                    

                    <input style="display: none;" type="text" id="s001"  class="form-control" name="starttime" value="{$starttime|date='Y-m-d H:i:s',###}">
                    <input style="display: none;" type="text" id="s002"  class="form-control"  name="endtime"   value="{$endtime|date='Y-m-d H:i:s',###}">
                    <div id="reportrange" class="datetimerange"
    style="background: #fff; cursor: pointer; padding: 5px 10px; border-radius: 10px;  width: 500px;margin-bottom: 20px;margin-left:30px;">
    时间筛选 : <i class="fa fa-calendar"></i>&nbsp;
    <span> {$starttime|date='Y-m-d H:i:s',###} - {$endtime|date='Y-m-d H:i:s',###} </span> <i class="fa fa-caret-down"></i>
</div>
                </div>
                
                <div class="col-xs-5">
                    <button type="submit" class="btn btn-success" formnovalidate="">查询</button>
                  
                </div>
            </div>
        </div>
    </div>
</form>

<div class="row row-bettween">
    <div class="top-item  ">
        <div class="shop-num">
            <span> 订单收款总金额 (元)</span>
            <div>{$pay}</div>
            <div class="row-bettween increase">
                较前一日15466.54
                <div class="row-bettween up">
                    <i class="fa fa-angle-up" style="font-size: 24px;margin-top: -6px;"></i>26%
                </div>
            </div>
        </div>
    </div>
    <div class="top-item ">
        <div class="shop-num">
            <span>订单退款总金额 (元)</span>
            <div>{$pay_1}</div>
            <div class="row-bettween increase">
                较前一日15466.54
                <div class="row-bettween down">
                    <i class="fa fa-angle-down" style="font-size: 24px;margin-top: -2px;"></i>26%
                </div>
            </div>
        </div>
    </div>
    <div class="top-item ">
        <div class="shop-num">
            <span>卡项订单金额 (元)</span>
            <div>{$pay_2}</div>
            <div class="row-bettween increase">
                较前一日15466.54
                <div class="row-bettween down">
                    <i class="fa fa-angle-down" style="font-size: 24px;margin-top: -2px;"></i>26%
                </div>
            </div>
        </div>
    </div>
    <div class="top-item  ">
        <div class="shop-num">
            <span>服务订单金额 (元)</span>
            <div>{$pay_3}</div>
            <div class="row-bettween increase">
                较前一日15466.54
                <div class="row-bettween down">
                    <i class="fa fa-angle-down" style="font-size: 24px;margin-top: -2px;"></i>26%
                </div>
            </div>
        </div>
    </div>
    <div class="top-item  ">
        <div class="shop-num">
            <span>商品订单总额 (元)</span>
            <div>{$pay_4}</div>
            <div class="row-bettween increase">
                较前一日15466.54
                <div class="row-bettween down">
                    <i class="fa fa-angle-down" style="font-size: 24px;margin-top: -2px;"></i>26%
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row-flex">
    <div class="matter-box" style="margin-right: 30px;">
        <div class="tag-red">
            <i></i>
            订单总览
        </div>
        <div id="order" style="width: 100%; height: 300px"></div>
    </div>
    <div class="matter-box">
        <div class="tag-red">
            <i></i>
            销售额总览
        </div>
        <div id="sale" style="width: 100%; height: 300px"></div>
    </div>
</div>
<div class="matter-box">
    <div class="tag-red">
        <i></i>
        交易看板
    </div>
    <div class="flex-wrap">
        <div class="table-box" style="margin-bottom: 10px;">
            <div class="table-title">实收方式按金额排行</div>
            <div class="table-box-th ">
                <div class="th-rank">排名</div>
                <div class="th-sales-amount">收款方式</div>
                <div class="th-sales-amount">收款金额(元)</div>
                <div class="th-sales-amount">退款金额(元)</div>
                <div class="th-sales-amount">实收金额(元)</div>
                <div class="th-sales-amount">占比</div>
            </div>
            {foreach name="i_9" item="vo"}
            <div class="table-box-tr">
                <div class="th-rank">{$key + 1}</div>
                <div class="th-sales-amount border-left">{$vo.name}</div>
                <div class="th-sales-amount border-left">{$vo.pending_amount}</div>
                <div class="th-sales-amount border-left">{$vo.refund_amount}</div>
                <div class="th-sales-amount border-left">{$vo.real_amount}</div>
                <div class="th-sales-amount">{$vo.amount_proportion}</div>
            </div>
            {/foreach}
        </div>
        <div class="table-box">
            <div class="table-title">实收方式按销量排行</div>
            <div class="table-box-th ">
                <div class="th-rank">排名</div>
                <div class="th-sales-amount">收款方式</div>
                <div class="th-sales-amount">收款笔数(单)</div>
                <div class="th-sales-amount">退款笔数(单)</div>
                <div class="th-sales-amount">实收笔数(单)</div>
                <div class="th-sales-amount">实收占比</div>
            </div>
            {foreach name="i_9" item="vo"}
            <div class="table-box-tr">
                <div class="th-rank">{$key + 1}</div>
                <div class="th-sales-amount border-left">{$vo.name}</div>
                <div class="th-sales-amount border-left">{$vo.pending_count}</div>
                <div class="th-sales-amount border-left">{$vo.refund_count}</div>
                <div class="th-sales-amount border-left">{$vo.real_count}</div>
                <div class="th-sales-amount">{$vo.count_proportion}</div>
            </div>
            {/foreach}
        </div>
    </div>
</div>